package com.tsx.wiki.mapper;

import com.tsx.wiki.pojo.Ebook;
import com.tsx.wiki.vo.EbookQueryVo;
import com.tsx.wiki.vo.EbookVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author Xuan
 * @description 针对表【ebook(电子书)】的数据库操作Mapper
 * @createDate 2023-11-13 19:36:43
 * @Entity com.tsx.wiki.pojo.Ebook
 */
@Mapper
public interface EbookMapper {
    List<EbookVo> selectAllByPageWithCategoryName(Ebook ebook);

    List<Ebook> selectAll(Ebook ebook);

    EbookQueryVo selectById(Long id);

    void update(Ebook ebook);

    void save(Ebook ebook);

    void deleteById(Long id);
}
